package com.zyong.design.pattern.mediator.case1;

/**
 * @program: zyong-design-pattern
 * @ClassName: Client
 * @author: zyong
 * @create: 2024-04-01 00:09
 */
public class Client {
    public static void main(String[] args) {
        ConcreteMediator concreteMediator = new ConcreteMediator();

        Colleague colleagueA = new ColleagueA("zhangsan", concreteMediator);
        Colleague colleagueB = new ColleagueA("lisi", concreteMediator);
        Colleague colleagueC = new ColleagueA("wangwu", concreteMediator);

        colleagueA.send("你好，我是zhangsan");

        System.out.println("============================================");

        colleagueB.send("你好，我是lisi");

        System.out.println("============================================");

        colleagueC.send("你好，我是wangwu");
    }
}
